
<{capture name="header"}>
  <link href="../app/ome/statics/ome.css" rel="stylesheet" type="text/css">
<{/capture}>

<div class="tableform">
<div class="division">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
	<th>销售单号：</th>
	<td ><{$sales.sale_bn}></td>
	<th>出入库单号：</th>
	<td ><{$sales.iostock_bn}></td>
	<th >	发货单号：</th>
	<td ><{$sales.ori_bn}></td>
	 <th >销售时间：</th>
     <td>
	 <{if $sales.sale_time}>
	   <{$sales.time}>
	 <{else}>
	   <{$sales.sale_time}>
	 <{/if}>
	
    
</tr>
<tr>
	<th >店铺名称：</th>
	<td ><{$data.shopname}></td>
    <th >仓库编号：</th>
    <td ><{$data.branch_bn}></td>
    <th >仓库名称：</th>
    <td ><{$data.name}></td>
	<th >支付状态：</th>
	<td ><{$data.pay_status}></td>
</tr>
<tr>
    <th >用户名：</th>
    <td ><{$data.uname}></td>
    <th >销售数量：</th>
    <td ><{$data.num}></td>
    <th >销售金额：</th>
    <td ><{$sales.sale_amount|cur}></td>
	<th >操作员：</th>
	<td ><{$sales.operator}></td>
</tr>
<tr>
	<th >物流费：</th>
	<td ><{$sales.delivery_cost|cur}></td>
    <th >附加费：</th>
    <td ><{$sales.additional_costs|cur}></td>
    <th >预存款：</th>
    <td ><{$sales.deposit|cur}></td>
	<th >订单折扣金额：</th>
	<td ><{$sales.discount|cur}></td>
	
   
</tr>
<tr>
	 <th >备注：</th>
    <td ><{$sales.memo}></td>

</tr>
</table>
</div>

<h4>销售明细：</h4>

<div class="goods-spec-cell" id='goods-spec-product'>
    <table cellspacing="0" cellpadding="0" border="0" class="gridlist">
     <thead>
     <tr>
	            <{if $dataitems.0.order_bn}><th orderkey="bn"><{t}>订单号<{/t}></th><{/if}>
				<th orderkey="bn"><{t}>货号<{/t}></th>
                <th orderkey="store"><{t}>货品名称<{/t}></th>
                <th orderkey="weight"><{t}>销售单价<{/t}></th>
                <th orderkey="unit"><{t}>销售数量<{/t}></th>
				<th orderkey="unit"><{t}>销售金额<{/t}></th>
	 </tr></thead><tbody>
 <{foreach from=$dataitems item=dataitem}>
	<tr>
	<{if $dataitem.order_bn}> <td><{$dataitem.order_bn}></td><{/if}>
	  <td><{$dataitem.bn}></td>
	  <td><{$dataitem.pname}></td>
	  <td><{$dataitem.price|cur}></td>
	  <td><{$dataitem.number}></td>
	  <td><{$dataitem.amount|cur}></td>
	</tr>
<{/foreach}>

</tbody>
</table>
</div>


</div>
</div>
